<?
include _ROOT."/class/adodb/adodb.inc.php";
class Database extends ADOConnection{
	function database($dbtype){
	}
	function setPrefix($value) {
		$this->prefix = $value;
	}
	
	function prefix($tablename="") {
		if($tablename != ""){
			return $this->prefix ."_". $tablename;
		} else {
			return $this->prefix;
		}
	}
	function fetchRow($rs) {
		return $rs->fetchRow;
	}
	function getInsertId() {
		return $this->Insert_ID();
	}
	function getRowsNum($result) {
		return @mysql_num_rows($result);
	}
}
?>